package com.njtoyo.taxi.admin.mapper.master.mapper;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.njtoyo.taxi.admin.library.Const;
import com.njtoyo.taxi.admin.mapper.master.entity.ActivitySeckillPrize;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.njtoyo.taxi.admin.rest.presenter.marketing.seckill.PrizeListPresenter;
import com.njtoyo.taxi.admin.rest.wrapper.marketing.seckill.PrizeListWrapper;
import org.springframework.stereotype.Repository;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Dell
 * @since 2021-07-01
 */
@Repository
@DS(Const.PRIMARY_DS)
public interface ActivitySeckillPrizeMapper extends BaseMapper<ActivitySeckillPrize> {
    Page<ActivitySeckillPrize> selectPage(PrizeListWrapper wrapper);

    Page<PrizeListPresenter> selectPageJoinCoupon(PrizeListWrapper wrapper);

    int insertOne(ActivitySeckillPrize prize);

    ActivitySeckillPrize selectById(Long id);

    int updateById(ActivitySeckillPrize prize);
}
